//-----------------------------------------------------------------------
// <copyright file="a_ShoppingCartService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_ShoppingCartService
    {
        #region a_ShoppingCart

        public static void Createa_ShoppingCart(a_ShoppingCart a_ShoppingCart)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                a_ShoppingCartDAO.Createa_ShoppingCart(a_ShoppingCart);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_ShoppingCart(a_ShoppingCart a_ShoppingCart)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                a_ShoppingCartDAO.Updatea_ShoppingCart(a_ShoppingCart);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_ShoppingCart(int id)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                a_ShoppingCartDAO.Deletea_ShoppingCart(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_ShoppingCart Geta_ShoppingCart(int id)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                return a_ShoppingCartDAO.Geta_ShoppingCart(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_ShoppingCartCollection Geta_ShoppingCartList(a_ShoppingCartColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                return a_ShoppingCartDAO.Geta_ShoppingCartList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_ShoppingCartCollection Geta_ShoppingCartList(a_ShoppingCartColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_ShoppingCartDAO a_ShoppingCartDAO = new a_ShoppingCartDAO();
                return a_ShoppingCartDAO.Geta_ShoppingCartList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}